<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <title>Bootstrap 101 Template</title>
  <!-- Bootstrap -->
  <link th:insert="common/head :: commonheader">
</head>
<body class="login-body">
  <div class="container">
    <div class="row">
      <div class="col-md-3">

      </div>
      <div class="col-md-6">
        <div class="login-form">
          <div class="text-center">
            <img th:src="@{/images/logo.png}" alt="" width="100" height="100">
          </div>

          <form class="form-horizontal" th:action="@{/user/login}" method="post">

            <div class="form-group form-input">
              <p th:text="${msg}" style="color: red;text-align: center"></p>
              <input type="text" class="form-control" placeholder="账号" name="userName" th:value="${username}">
              <input type="password" class="form-control" placeholder="密码" name="password">
              <button class="btn btn-lg btn-login btn-block" type="submit">
                <span class="glyphicon glyphicon-ok"></span>
              </button>
              <div class="text-center">
                <span style="color:#c7c7c7; font-size: 16px">没有账户？</span>
                <a style="color:#6bc5a4; font-size: 16px" th:href="@{/user/register}">去注册</a>
              </div>
            </div>
          </form>
        </div>
      </div>
      <div class="col-md-3">

      </div>
    </div>
  </div>

</body>
</html>